﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
using NAuthorize.Library;

namespace NAuthorize.Tests
{
    public class CoreTests
    {

        [Fact]
        public void TestTransaction()
        {
            PaymentProvider provider = new PaymentProvider();


            provider.PaymentRequest.TestMode = true;
            provider.PaymentRequest.TransactionType = TransactionType.AUTH_CAPTURE;
            provider.PaymentRequest.CreditCardNumber = "4222222222222222";
            provider.PaymentRequest.Amount = 1.00;
            provider.PaymentRequest.CreditCardExpirationDate = DateTime.Parse("12/1/2012");

            provider.ProcessTransaction();
            
        }

    }
}
